package qc.common.core.enums.qms;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * QMS参数值类型枚举
 *
 * @author QuCheng Tech
 * @since 2025/9/11
 */
@Getter
@AllArgsConstructor
public enum QmsParamValueDataTypeEnum {
    STRING(0, "字符串"),
    BOOL(1, "布尔"),
    INT(2, "整数"),
    FLOAT(3, "小数"),
    DATE(4, "日期时间"),
    LINE(5, "工作曲线");//包含二维曲线和三维曲线

    @EnumValue
    private int index;
    private String name;

    @Override
    public String toString() {
        if (this != null)
            return this.name;

        return null;
    }
}
